package com.fc.happyteam.service;


import com.fc.happyteam.entity.SysDictGroupEntity;
import com.fc.happyteam.entity.SysDictItemEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by futurecreative on 2017/7/25.
 */
public interface ISysDictService {

    SysDictGroupEntity getSysDictGroup(Integer id);

    SysDictGroupEntity getSysDictGroupByCode(String code);

    SysDictItemEntity getSysDictItem(Integer id);

    SysDictItemEntity getSysDictItemByCode(String code);

    List<SysDictGroupEntity> querySysDictGroupList(Map<String, Object> map);

    int querySysDictGroupTotal(Map<String, Object> map);

    void saveDictItem(SysDictItemEntity sysDictItemEntity);

    void saveDictGroup(SysDictGroupEntity sysDictGroupEntity);

    void updateSysDictItem(SysDictItemEntity sysDictItemEntity);

    void updateSysDictGroup(SysDictGroupEntity sysDictGroupEntity);

    void deleteSysDictItems(Integer[] ids);

    void deleteSysDictGroups(Integer[] ids);
}
